﻿#region

using System.Drawing;
using Tank90.Properties;

#endregion

namespace Tank90
{
    public class Role : Element
    {
        public int speed { get; set; }
        public bool died { get; set; }
        public Directions directions { get; set; }
        public int staticX { get; set; }
        public int staticY { get; set; }

        #region

        public Image[] BlastImage =
        {
            Resources.blast11,
            Resources.blast2,
            Resources.blast3,
            Resources.blast4,
            Resources.blast5,
            Resources.blast6,
            Resources.blast7,
            Resources.blast8
        };


        public Image[] BornImages =
        {
            Resources.born1,
            Resources.born2,
            Resources.born3,
            Resources.born4,
            Resources.born1,
            Resources.born2,
            Resources.born3,
            Resources.born4,
            Resources.born1,
            Resources.born2,
            Resources.born3,
            Resources.born4,
            Resources.born1,
            Resources.born2,
            Resources.born3,
            Resources.born4
        };

        #endregion

        public override void Drawing(Graphics graphics)
        {
        }

        public void IsBeyond()
        {
            if (x > 640 - 42)
            {
                x = 640 - 42;
            }
            if (y > 640 - 42)
            {
                y = 640 - 42;
            }
            if (x < 2)
            {
                x = 2;
            }
            if (y < 2)
            {
                y = 2;
            }
        }

        public virtual void Move()
        {
        }
    }
}